      <?php @session_start(); 
	  
	  							include_once 'src/facebook.php';
								// App name Uttu
								// Create our Application instance (replace this with your appId and secret).
								$facebook = new Facebook(array(
								  'appId'  => '334619919999877',
								  'secret' => 'ec96fb04e9c2ae9782718e1a4cfbc946',
								));

								// Get User ID
								$user = $facebook->getUser();
						
								if ($user) {
								$params = array( 'next' => 'http://localhost/ma/logout.php' );
								  $logoutUrl = $facebook->getLogoutUrl($params);						  
								}else
									$logoutUrl = 'logout.php';
	  
	  ?>
      <div id="header" class="grid_12">  
        <label  class="logout" class="right" style="float: right;"><?php if(isset($_SESSION['username'])){echo "Hi ".$_SESSION['username']." | <a href='".$logoutUrl."'> Log out</a>"; } else echo "<a href='login.php'>Login</a> | <a href='registration.php'>Register</a>"; if(isset($_SESSION['user_role']) && $_SESSION['user_role']==1){echo " | <a href='admin-panel.php'> Admin dashboard</a> "; } ?></label>
        <div id="logo" class="grid_3 alpha">  
          <h1><a href="index.php">My Arunachal</a></h1>          
        </div>   
        <div id="main-menu" class="grid_9 omega menu">  
          <?php include("html/menu.html"); ?>
        </div>
      </div>